﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
    
    
</head>
    <div class="alert alert-info">当前位置<b class="tip"></b>客户信息管理<b class="tip"></b>联系人列表</div>
       &nbsp;<a class="btn" id="Button3" href="{:U('Client/lst',array('id'=>$id,'p'=>$p))}">返回客户信息列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Client/edit',array('id'=>$id,'p'=>$p))}">编辑客户信息</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientContact/lst',array('id'=>$id,'p'=>$p))}">联系人列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientAccount/lst',array('id'=>$id,'p'=>$p))}">交往记录</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Order/lst',array('id'=>$id,'p'=>$p))}">订单记录</a>
        <br/>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientContact/add',array('id'=>$id,'p'=>$p))}">新增联系人</a>
            <table class="tb" id="top">
            <thead>
                <tr>
                    <th>客户编号</th>
                    <th>{$id}</th>
                    <th>客户名称</th>
                    <th>{$name}</th>
                </tr>
            </thead>
        </table>
        <br/>
        <div class="list-div" id="listDiv">
	<table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
    	<tr>
            <th >姓名</th>
            <th >性别</th>
            <th >职位</th>
            <th >办公室电话</th>
            <th >手机</th>
            <th >备注</th>
			<th width="60">操作</th>
        </tr>
		<volist name="data" id="v">         
			<tr class="tron">
				<td>{$v['name']}</td>
				<td>{$v['sex']==1?男:女}</td>
				<td>{$v['job']}</td>
				<td>{$v['job_phone']}</td>
				<td>{$v['phone']}</td>
				<td>{$v['comments']}</td>
		        <td align="center">
		        	<a href="{:U('edit',array('id'=>$v['id'],'p'=>$p))}" class="btn" title="编辑">编辑</a> 
	                <a href="{:U('delete',array('id'=>$v['id'],'p'=>$p))}" class="btn" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
                </volist> 
		<if condition="preg_match('/\d/', $page)">  
        <tr><td align="right" nowrap="true" colspan="99" height="30">{$page}</td></tr> 
                </if>
	</table>
</div>
</html>
